﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2004A.Shopping.Domain
{
    /// <summary>
    /// 商品分类
    /// </summary>
    [Table("tb_category")]
    public class CategoryModel : AuditKey<int>
    {
        public string? Name { get; set; }
        public int PId { get; set; }
        public string? ImgPath { get; set; }  //图片路径
        public bool HavaLevel { get; set; } = false; //是否有子级
        public bool IsDeleted { get; set; } = false;
    }

    /// <summary>
    /// 商品品牌
    /// </summary>
    [Table("tb_brand")]
    public class BrandModel : AuditKey<int>
    {
        public string? Name { get; set; }
        public string? Remark { get; set; }
        public string? LogoPath { get; set; }  //图片路径
        public bool IsDeleted { get; set; } = false;
    }
}
